package com.crm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Contract {
    public static final String CONTRACT_STATUS_WAITING = "4";

    private String createBy;

    private String createTime;

    private String updateBy;

    private String updateTime;

    private String id;
    private String contractNo;
    private String phone;
    private String name;
    private String subject;
    private String channel;
    private Integer activityId;
    private Integer courseId;
    private String status;
    private String fileName;
    private Double coursePrice;
    private String discountType;

    @TableField("`order`")
    private Double order;
    private String finishTime;
    private Long businessId;
    private Long deptId;
    // 新增虚拟字段，存统计值（不映射数据库）
    @TableField(exist = false)
    private Integer newCustomerCount;
    @TableField(exist = false)
    private Integer totalCustomerCount;

}
